<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学员流失管理</title>
    <%@ include file="/WEB-INF/views/commons/common.jsp"%>
    <script type="text/javascript" src="/static/js/system/studentLossItem.js"></script>
</head>
<body>
    <%--数据表格--%>
    <table id="studentLossItem_datagrid" ></table>

    <%--表格工具栏--%>
    <div id="tb">
        <div>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-tip',plain:true" data-cmd="lookView">查看</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-man',plain:true" data-cmd="audit">审核</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
        </div>
        <div>
            姓名/电话:<input class="easyui-textbox" name="keyword" id="keyword" prompt="关键字">
            班级:
            <input class="easyui-combobox" name="clazzId" id="clazzId" prompt="班级" data-options="
                        url:'/clazz/listData.do',
                        valueField:'id',
                        textField:'name',
                        panelHeight:'auto'
                    ">
            流失时间:
            <input type="text" class="easyui-datetimebox"  name="beginDate" id="beginDate" prompt="开始时间"/>--
            <input type="text" class="easyui-datetimebox"  name="endDate" id="endDate" prompt="结束时间"/>
            <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="searchT"
               data-options="iconCls:'icon-search',plain:true">查询</a>
        </div>
    </div>

    <%--添加和编辑弹窗--%>
    <div id="studentLossItem_dialog" align="center">
        <form id="studentLossItem_form" method="post">
            <table  CELLSPACING="20" align="center" style="margin-top: 20px;
                    border-collapse:separate; border-spacing:0 10px;">
                <input type="hidden" id="studentLossItemId" name="id">
                <tr>
                    <td>学员姓名:</td>
                    <td><input class="easyui-textbox readOn" name="name"/></td>
                    <td>QQ:</td>
                    <td><input class="easyui-textbox readOn" name="qqNum"/></td>
                </tr>
                <tr>
                    <td>电话:</td>
                    <td><input class="easyui-textbox readOn" name="tel"/></td>
                    <td>上课天数:</td>
                    <td><input class="easyui-textbox readOn" name="classDays"/></td>
                </tr>
                <tr>
                    <td>流失班级:</td>
                    <td><input  name="lossClass.id" editable="false" class="easyui-combobox readOn" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url:'/clazz/listData.do',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                    <td>流失阶段:</td>
                    <td><input  name="lossStage.id" editable="false" class="easyui-combobox readOn" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '流失阶段',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>流失原因:</td>
                    <td><input class="easyui-textbox readOn" name="lossReason"/></td>
                    <td>流失时间:</td>
                    <td><input class="easyui-datetimebox readOn" editable="false" name="lossTime"/></td>
                </tr>
                <tr>
                    <td>经办人:</td>
                    <td>
                        <input class="easyui-combobox readOn" editable="false" name="responsible.id" data-options="
                        url:'/employee/listData.do',
                        valueField:'id',
                        textField:'username',
                        panelHeight:'auto'
                    ">
                    </td>
                    <td>营销人员:</td>
                    <td>
                        <input class="easyui-combobox readOn" editable="false" name="marketingPerson.id" data-options="
                        url:'/employee/listData.do',
                        valueField:'id',
                        textField:'username',
                        panelHeight:'auto'
                    ">
                    </td>
                </tr>
                <tr>
                    <td>录入人:</td>
                    <td>
                        <input class="easyui-combobox readOn" editable="false" name="entryUser.id" data-options="
                        url:'/employee/listData.do',
                        valueField:'id',
                        textField:'username',
                        panelHeight:'auto'
                    ">
                    </td>
                </tr>

            </table>
        </form>
    </div>

    <%--弹窗底部按钮--%>
    <div id="bb">
        <a href="JavaScript:;" class="easyui-linkbutton dialog-button" iconCls="icon-save" data-cmd="save">保存</a>
        <a href="JavaScript:;" class="easyui-linkbutton dialog-button" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
    </div>
    <div id="cc">
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-save" data-cmd="saveChange">保存</a>
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancelChange">关闭</a>
    </div>

</body>
</html>
